package com.sixth.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sixth.core.entity.Menu;
import com.sixth.core.vo.R;
import com.sixth.system.vo.MenuVo;

import java.util.List;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 李劲锋
 * @create: 2024-08-12 17:12
 **/
public interface MenuService {
    R<List<Menu>> selectByUserId(Long userId);
    R<List<Menu>> selectLeftMenu();

//    R<Page<Menu>> selectByPage(MenuVo menuVo);


    R<List<Menu>> selectAll(MenuVo menuVo);

    R<Menu> getMenuById(Long menuId);

    boolean add_update_menu(Menu menu);

    R<List<Menu>> selectMenusByRoleId(Long roleId);

    R saveRoleMenu(Long roleId, Long[] finalKey);

    R<List<Menu>> listAllMenu();

    R removeById(Long menuId);
}
